package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import  com.zzyl.entity.NursingLevel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    List<NursingLevelVo> queryAllNursingLevel();



    NursingLevelVo selectById(@Param("id") int id);

    int insert(NursingLevel nursingLevel);


    int update(NursingLevel nursingLevel);

    int delete(@Param("id") int id);

    @Select("select count(*) from  nursing_level where name =#{name}")
    Integer selectByName(String name);

    Page<NursingLevelVo> pageQuery(String name, Integer status);


}
